package com.example.homelicaisystem.dao;

import com.example.homelicaisystem.entity.DTO.InvestmentDTO;
import com.example.homelicaisystem.entity.DTO.InvestmentDetailDTO;
import com.example.homelicaisystem.entity.Investment;
import com.example.homelicaisystem.entity.InvestmentDetail;
import com.example.homelicaisystem.entity.SelectResult;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface InvestmentMapper {

    Page<Investment> getList(InvestmentDTO data);

    Investment selectInvestmentByName(String name);

    void update(Investment investment);

    void insert(InvestmentDetail data);

    List<SelectResult> selectInvestmentType();

    void delete(Integer Id);

    List<SelectResult> selectInvestment(int investmentType);

    Investment selectInvestmentById(Integer id);
}
